<template>
  <div>
    <el-row>
      <el-col :span="22" style="float: left; text-align: left">
        <div style=" text-align: left"><span>logo:</span> </div>
        <div style=" text-align: left"><img style="width: 150px;height: 150px;" :src="this.school.logo"/></div>
        <el-divider></el-divider>
        <span>学校名称:</span><span>{{this.school.schoolName}}</span>
        <el-divider></el-divider>
        <span>学校地址:</span> <span>{{this.school.schoolAddress}}</span>
        <el-divider></el-divider>
        <span>联系电话:</span><span>{{this.school.cellphone}}</span>
        <el-divider></el-divider>
        <span>支付宝账号:</span><span>{{this.school.alipay}}</span>
        <el-divider></el-divider>
        <span>微信收款账号:</span><span>{{this.school.weixin}}</span>
        <el-divider></el-divider>
        <div style=" text-align: left"><span>支付宝收款二维码:</span></div>
        <div style=" text-align: left"><img style="width: 178px;height: 178px;" :src="this.school.alipayPrc"/></div>
        <el-divider></el-divider>
        <div style=" text-align: left"><span>微信收款二维码:</span></div>
        <div style=" text-align: left"><img style="width: 178px;height: 178px;"  :src="this.school.weixinPrc"/></div>
      </el-col>
      <el-col :span="2">
        <el-button size="mini" @click="edit" style="float: right" type="danger">编辑</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data(){
    return{
   school:{},
    }
  },
  mounted() {
    this.$axios.get("/schoolSet/findSchool").then(res=>{
      console.log(res.data)
     this.school=res.data.data
    })
  },
  methods:{
    edit(){
     let detildata =this.school
      console.log(detildata)
      this.$router.push({
        name:'schooledit',
        params: {
          detildata:detildata
        }
      })
    }
  }
}
</script>

<style scoped>

</style>